<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <link rel="stylesheet" href="./css/index.css" />
        <title>斐波拉契数列—栈变化</title>
    </head>
    <body>
        <h1>斐波拉契数列—栈变化</h1>
        <div class="container">
            <div class="controls">
                <button class="btn-reload hide">重新开始</button>
                <button class="btn-next">下一步(n)</button>
                <button class="btn-one-step">运行到结束</button>
                <button class="btn-pause hide">暂停</button>
                <!-- <button class="btn-play">继续</button> -->
                <div>
                    动画速度：<select value="0.5" class="select-speed">
                        <option value="0">迅速</option>
                        <option value="0.1">非常快</option>
                        <option value="0.3">较快</option>
                        <option value="0.5">正常</option>
                        <option value="1">较慢</option>
                    </select>
                </div>
                <div style="margin-left: 24px">
                    是否折叠代码区<input
                        type="checkbox"
                        class="chbox-minimal"
                    />
                </div>
                <div style="margin-left: 24px">
                    求数列的第<input
                        type="number"
                        class="ipt-an"
                        placeholder=""
                        value="4"
                    />项
                </div>
            </div>
            <div class="info">
                <div style="display: flex">
                    <span>提示文本：</span>
                    <div class="text"></div>
                </div>

                <div class="output"></div>
            </div>
            <div class="row">
                <div>
                    <div class="sub-title">代码区</div>
                    <div class="asm">
                        <div class="memory has-pointer">
                            <div class="pointer pc">
                                <div class="name">pc</div>
                                <div class="arrow"></div>
                                <div class="rect"></div>
                            </div>
                            <!-- <div class="memory-item">
                            <div class="add">0x804844a</div>
                            <div class="val">movl $0x5,(%esp)</div>
                        </div> -->
                        </div>
                    </div>
                </div>
                <div>
                    <div class="sub-title">寄存器</div>
                    <div class="regs">
                        <div class="memory">
                            <!-- <div class="memory-item">
                            <div class="add">eax</div>
                            <div class="val">1</div>
                        </div> -->
                        </div>
                    </div>
                    <div class="min-tree">
                        <!-- 如果项小于等于5canvas会放在这里 -->
                        <div class="sub-title tree-title">调用树</div>
                        <canvas id="canvas"></canvas>
                    </div>
                </div>
                <div>
                    <div class="sub-title">栈</div>
                    <div class="stack">
                        <div class="memory has-pointer">
                            <div class="pointer esp">
                                <div class="name">esp</div>
                                <div class="arrow"></div>
                                <!-- <div class="rect"></div> -->
                            </div>
                            <div class="pointer ebp">
                                <div class="name">ebp</div>
                                <div class="arrow"></div>
                                <!-- <div class="rect"></div> -->
                            </div>
                            <!-- <div class="memory-item">
                            <div class="add">eax</div>
                            <div class="val">1</div>
                        </div> -->
                        </div>
                    </div>
                </div>
            </div>
            <div class="c-code">
                <div class="curr-code-pointer"></div>
                <!-- <div class="code-line">int a = 1;</div> -->
            </div>
            <div class="max-tree">
                <!-- 如果项的值大于5，会放到这里 -->
                <!-- <canvas id="canvas"></canvas> -->
            </div>
        </div>

        <div class="codes"></div>
        <script src="./js/config.js"></script>
        <script src="./js/anime.js"></script>
        <script src="./js/utils.js"></script>
        <script src="./js/tree.js"></script>
        <script src="./js/c-code-source.js"></script>
        <script src="./js/asm-source.js"></script>
        <script src="./js/index.js"></script>
    </body>
</html>
